package com.kjtpay.design_pattern.visitor;

/**
 * 婚姻；种类很多，扩展方便；ConcreteVisitor
 */
class Marriage extends Action {

    public Marriage() {
        state = "结婚";
    }

    @Override
    public String getManConclusion(Man man) {
        return man.type + state
                + "时，感慨道：恋爱游戏终结时，有妻徒刑遥无期。";
    }

    @Override
    public String getWomanConclusion(Woman woman) {
        return woman.type + state
                + "时，欣慰曰：爱情长跑路漫漫，婚姻保险保平安。";
    }
}
